package com.indexingsystem.boss.Vo;

import java.io.Serializable;
import java.util.Date;

public class InstitutionsVo implements Serializable {


	/**
     * 
     */
    private static final long serialVersionUID = 8063781643673387882L;

    private String institutionId;

	private String parentId;

	private String institutionOrder;

	private String institutionName;

	private String institutionDisplayName;

	private Integer institutionType;

	private String nature;

	private String industry;

	private String province;

	private String city;

	private String address;

	private String phone;

	private String contactName;

	private String postcode;

	private String description;

	private Integer enabled;

	private String validDate;

	private String startCreateTime;

	private String endCreateDate;
	
	private Date createDate;

	private String endCreateTime;

	private String startCreateDate;

	private String startLoginTime;

	private String endLoginTime;

	private String createUserId;
	
	private Date lastUpdatedDate;

	private String lastUpdatedUserId;

	private String userId;

	private String userName;

	private String displayName;

	private String email;

	private Integer queryType;

	private Integer pageNumber;

	private Integer pageSize;

	private Integer status;
	
	private Integer relation;

    public String getInstitutionId()
    {
        return institutionId;
    }

    public void setInstitutionId(String institutionId)
    {
        this.institutionId = institutionId;
    }

    public String getParentId()
    {
        return parentId;
    }

    public void setParentId(String parentId)
    {
        this.parentId = parentId;
    }

    public String getInstitutionOrder()
    {
        return institutionOrder;
    }

    public void setInstitutionOrder(String institutionOrder)
    {
        this.institutionOrder = institutionOrder;
    }

    public String getInstitutionName()
    {
        return institutionName;
    }

    public void setInstitutionName(String institutionName)
    {
        this.institutionName = institutionName;
    }

    public String getInstitutionDisplayName()
    {
        return institutionDisplayName;
    }

    public void setInstitutionDisplayName(String institutionDisplayName)
    {
        this.institutionDisplayName = institutionDisplayName;
    }

    public Integer getInstitutionType()
    {
        return institutionType;
    }

    public void setInstitutionType(Integer institutionType)
    {
        this.institutionType = institutionType;
    }

    public String getNature()
    {
        return nature;
    }

    public void setNature(String nature)
    {
        this.nature = nature;
    }

    public String getIndustry()
    {
        return industry;
    }

    public void setIndustry(String industry)
    {
        this.industry = industry;
    }

    public String getProvince()
    {
        return province;
    }

    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getAddress()
    {
        return address;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getPhone()
    {
        return phone;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getContactName()
    {
        return contactName;
    }

    public void setContactName(String contactName)
    {
        this.contactName = contactName;
    }

    public String getPostcode()
    {
        return postcode;
    }

    public void setPostcode(String postcode)
    {
        this.postcode = postcode;
    }

    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public Integer getEnabled()
    {
        return enabled;
    }

    public void setEnabled(Integer enabled)
    {
        this.enabled = enabled;
    }

    public String getValidDate()
    {
        return validDate;
    }

    public void setValidDate(String validDate)
    {
        this.validDate = validDate;
    }

    public String getStartCreateTime()
    {
        return startCreateTime;
    }

    public void setStartCreateTime(String startCreateTime)
    {
        this.startCreateTime = startCreateTime;
    }

    public String getEndCreateDate()
    {
        return endCreateDate;
    }

    public void setEndCreateDate(String endCreateDate)
    {
        this.endCreateDate = endCreateDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }

    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public String getEndCreateTime()
    {
        return endCreateTime;
    }

    public void setEndCreateTime(String endCreateTime)
    {
        this.endCreateTime = endCreateTime;
    }

    public String getStartCreateDate()
    {
        return startCreateDate;
    }

    public void setStartCreateDate(String startCreateDate)
    {
        this.startCreateDate = startCreateDate;
    }

    public String getStartLoginTime()
    {
        return startLoginTime;
    }

    public void setStartLoginTime(String startLoginTime)
    {
        this.startLoginTime = startLoginTime;
    }

    public String getEndLoginTime()
    {
        return endLoginTime;
    }

    public void setEndLoginTime(String endLoginTime)
    {
        this.endLoginTime = endLoginTime;
    }

    public String getCreateUserId()
    {
        return createUserId;
    }

    public void setCreateUserId(String createUserId)
    {
        this.createUserId = createUserId;
    }

    public Date getLastUpdatedDate()
    {
        return lastUpdatedDate;
    }

    public void setLastUpdatedDate(Date lastUpdatedDate)
    {
        this.lastUpdatedDate = lastUpdatedDate;
    }

    public String getLastUpdatedUserId()
    {
        return lastUpdatedUserId;
    }

    public void setLastUpdatedUserId(String lastUpdatedUserId)
    {
        this.lastUpdatedUserId = lastUpdatedUserId;
    }

    public String getUserId()
    {
        return userId;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getDisplayName()
    {
        return displayName;
    }

    public void setDisplayName(String displayName)
    {
        this.displayName = displayName;
    }

    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public Integer getQueryType()
    {
        return queryType;
    }

    public void setQueryType(Integer queryType)
    {
        this.queryType = queryType;
    }

    public Integer getPageNumber()
    {
        return pageNumber;
    }

    public void setPageNumber(Integer pageNumber)
    {
        this.pageNumber = pageNumber;
    }

    public Integer getPageSize()
    {
        return pageSize;
    }

    public void setPageSize(Integer pageSize)
    {
        this.pageSize = pageSize;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getRelation()
    {
        return relation;
    }

    public void setRelation(Integer relation)
    {
        this.relation = relation;
    }    

    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((address == null) ? 0 : address.hashCode());
        result = prime * result + ((city == null) ? 0 : city.hashCode());
        result = prime * result + ((contactName == null) ? 0 : contactName.hashCode());
        result = prime * result + ((createDate == null) ? 0 : createDate.hashCode());
        result = prime * result + ((createUserId == null) ? 0 : createUserId.hashCode());
        result = prime * result + ((description == null) ? 0 : description.hashCode());
        result = prime * result + ((displayName == null) ? 0 : displayName.hashCode());
        result = prime * result + ((email == null) ? 0 : email.hashCode());
        result = prime * result + ((enabled == null) ? 0 : enabled.hashCode());
        result = prime * result + ((endCreateDate == null) ? 0 : endCreateDate.hashCode());
        result = prime * result + ((endCreateTime == null) ? 0 : endCreateTime.hashCode());
        result = prime * result + ((endLoginTime == null) ? 0 : endLoginTime.hashCode());
        result = prime * result + ((industry == null) ? 0 : industry.hashCode());
        result = prime * result
                 + ((institutionDisplayName == null) ? 0 : institutionDisplayName.hashCode());
        result = prime * result + ((institutionId == null) ? 0 : institutionId.hashCode());
        result = prime * result + ((institutionName == null) ? 0 : institutionName.hashCode());
        result = prime * result + ((institutionOrder == null) ? 0 : institutionOrder.hashCode());
        result = prime * result + ((institutionType == null) ? 0 : institutionType.hashCode());
        result = prime * result + ((lastUpdatedDate == null) ? 0 : lastUpdatedDate.hashCode());
        result = prime * result + ((lastUpdatedUserId == null) ? 0 : lastUpdatedUserId.hashCode());
        result = prime * result + ((nature == null) ? 0 : nature.hashCode());
        result = prime * result + ((pageNumber == null) ? 0 : pageNumber.hashCode());
        result = prime * result + ((pageSize == null) ? 0 : pageSize.hashCode());
        result = prime * result + ((parentId == null) ? 0 : parentId.hashCode());
        result = prime * result + ((phone == null) ? 0 : phone.hashCode());
        result = prime * result + ((postcode == null) ? 0 : postcode.hashCode());
        result = prime * result + ((province == null) ? 0 : province.hashCode());
        result = prime * result + ((queryType == null) ? 0 : queryType.hashCode());
        result = prime * result + ((relation == null) ? 0 : relation.hashCode());
        result = prime * result + ((startCreateDate == null) ? 0 : startCreateDate.hashCode());
        result = prime * result + ((startCreateTime == null) ? 0 : startCreateTime.hashCode());
        result = prime * result + ((startLoginTime == null) ? 0 : startLoginTime.hashCode());
        result = prime * result + ((status == null) ? 0 : status.hashCode());
        result = prime * result + ((userId == null) ? 0 : userId.hashCode());
        result = prime * result + ((userName == null) ? 0 : userName.hashCode());
        result = prime * result + ((validDate == null) ? 0 : validDate.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        InstitutionsVo other = (InstitutionsVo)obj;
        if (address == null)
        {
            if (other.address != null) return false;
        }
        else if (!address.equals(other.address)) return false;
        if (city == null)
        {
            if (other.city != null) return false;
        }
        else if (!city.equals(other.city)) return false;
        if (contactName == null)
        {
            if (other.contactName != null) return false;
        }
        else if (!contactName.equals(other.contactName)) return false;
        if (createDate == null)
        {
            if (other.createDate != null) return false;
        }
        else if (!createDate.equals(other.createDate)) return false;
        if (createUserId == null)
        {
            if (other.createUserId != null) return false;
        }
        else if (!createUserId.equals(other.createUserId)) return false;
        if (description == null)
        {
            if (other.description != null) return false;
        }
        else if (!description.equals(other.description)) return false;
        if (displayName == null)
        {
            if (other.displayName != null) return false;
        }
        else if (!displayName.equals(other.displayName)) return false;
        if (email == null)
        {
            if (other.email != null) return false;
        }
        else if (!email.equals(other.email)) return false;
        if (enabled == null)
        {
            if (other.enabled != null) return false;
        }
        else if (!enabled.equals(other.enabled)) return false;
        if (endCreateDate == null)
        {
            if (other.endCreateDate != null) return false;
        }
        else if (!endCreateDate.equals(other.endCreateDate)) return false;
        if (endCreateTime == null)
        {
            if (other.endCreateTime != null) return false;
        }
        else if (!endCreateTime.equals(other.endCreateTime)) return false;
        if (endLoginTime == null)
        {
            if (other.endLoginTime != null) return false;
        }
        else if (!endLoginTime.equals(other.endLoginTime)) return false;
        if (industry == null)
        {
            if (other.industry != null) return false;
        }
        else if (!industry.equals(other.industry)) return false;
        if (institutionDisplayName == null)
        {
            if (other.institutionDisplayName != null) return false;
        }
        else if (!institutionDisplayName.equals(other.institutionDisplayName)) return false;
        if (institutionId == null)
        {
            if (other.institutionId != null) return false;
        }
        else if (!institutionId.equals(other.institutionId)) return false;
        if (institutionName == null)
        {
            if (other.institutionName != null) return false;
        }
        else if (!institutionName.equals(other.institutionName)) return false;
        if (institutionOrder == null)
        {
            if (other.institutionOrder != null) return false;
        }
        else if (!institutionOrder.equals(other.institutionOrder)) return false;
        if (institutionType == null)
        {
            if (other.institutionType != null) return false;
        }
        else if (!institutionType.equals(other.institutionType)) return false;
        if (lastUpdatedDate == null)
        {
            if (other.lastUpdatedDate != null) return false;
        }
        else if (!lastUpdatedDate.equals(other.lastUpdatedDate)) return false;
        if (lastUpdatedUserId == null)
        {
            if (other.lastUpdatedUserId != null) return false;
        }
        else if (!lastUpdatedUserId.equals(other.lastUpdatedUserId)) return false;
        if (nature == null)
        {
            if (other.nature != null) return false;
        }
        else if (!nature.equals(other.nature)) return false;
        if (pageNumber == null)
        {
            if (other.pageNumber != null) return false;
        }
        else if (!pageNumber.equals(other.pageNumber)) return false;
        if (pageSize == null)
        {
            if (other.pageSize != null) return false;
        }
        else if (!pageSize.equals(other.pageSize)) return false;
        if (parentId == null)
        {
            if (other.parentId != null) return false;
        }
        else if (!parentId.equals(other.parentId)) return false;
        if (phone == null)
        {
            if (other.phone != null) return false;
        }
        else if (!phone.equals(other.phone)) return false;
        if (postcode == null)
        {
            if (other.postcode != null) return false;
        }
        else if (!postcode.equals(other.postcode)) return false;
        if (province == null)
        {
            if (other.province != null) return false;
        }
        else if (!province.equals(other.province)) return false;
        if (queryType == null)
        {
            if (other.queryType != null) return false;
        }
        else if (!queryType.equals(other.queryType)) return false;
        if (relation == null)
        {
            if (other.relation != null) return false;
        }
        else if (!relation.equals(other.relation)) return false;
        if (startCreateDate == null)
        {
            if (other.startCreateDate != null) return false;
        }
        else if (!startCreateDate.equals(other.startCreateDate)) return false;
        if (startCreateTime == null)
        {
            if (other.startCreateTime != null) return false;
        }
        else if (!startCreateTime.equals(other.startCreateTime)) return false;
        if (startLoginTime == null)
        {
            if (other.startLoginTime != null) return false;
        }
        else if (!startLoginTime.equals(other.startLoginTime)) return false;
        if (status == null)
        {
            if (other.status != null) return false;
        }
        else if (!status.equals(other.status)) return false;
        if (userId == null)
        {
            if (other.userId != null) return false;
        }
        else if (!userId.equals(other.userId)) return false;
        if (userName == null)
        {
            if (other.userName != null) return false;
        }
        else if (!userName.equals(other.userName)) return false;
        if (validDate == null)
        {
            if (other.validDate != null) return false;
        }
        else if (!validDate.equals(other.validDate)) return false;
        return true;
    }

    public InstitutionsVo()
    {
        super();
    }

    public InstitutionsVo(String institutionId, String parentId, String institutionOrder,
                          String institutionName, String institutionDisplayName,
                          Integer institutionType, String nature, String industry,
                          String province, String city, String address, String phone,
                          String contactName, String postcode, String description,
                          Integer enabled, String validDate, String startCreateTime,
                          String endCreateDate, Date createDate, String endCreateTime,
                          String startCreateDate, String startLoginTime, String endLoginTime,
                          String createUserId, Date lastUpdatedDate, String lastUpdatedUserId,
                          String userId, String userName, String displayName, String email,
                          Integer queryType, Integer pageNumber, Integer pageSize, Integer status,
                          Integer relation)
    {
        super();
        this.institutionId = institutionId;
        this.parentId = parentId;
        this.institutionOrder = institutionOrder;
        this.institutionName = institutionName;
        this.institutionDisplayName = institutionDisplayName;
        this.institutionType = institutionType;
        this.nature = nature;
        this.industry = industry;
        this.province = province;
        this.city = city;
        this.address = address;
        this.phone = phone;
        this.contactName = contactName;
        this.postcode = postcode;
        this.description = description;
        this.enabled = enabled;
        this.validDate = validDate;
        this.startCreateTime = startCreateTime;
        this.endCreateDate = endCreateDate;
        this.createDate = createDate;
        this.endCreateTime = endCreateTime;
        this.startCreateDate = startCreateDate;
        this.startLoginTime = startLoginTime;
        this.endLoginTime = endLoginTime;
        this.createUserId = createUserId;
        this.lastUpdatedDate = lastUpdatedDate;
        this.lastUpdatedUserId = lastUpdatedUserId;
        this.userId = userId;
        this.userName = userName;
        this.displayName = displayName;
        this.email = email;
        this.queryType = queryType;
        this.pageNumber = pageNumber;
        this.pageSize = pageSize;
        this.status = status;
        this.relation = relation;
    }

    @Override
    public String toString()
    {
        return "InstitutionsVo [institutionId=" + institutionId + ", parentId=" + parentId
               + ", institutionOrder=" + institutionOrder + ", institutionName=" + institutionName
               + ", institutionDisplayName=" + institutionDisplayName + ", institutionType="
               + institutionType + ", nature=" + nature + ", industry=" + industry + ", province="
               + province + ", city=" + city + ", address=" + address + ", phone=" + phone
               + ", contactName=" + contactName + ", postcode=" + postcode + ", description="
               + description + ", enabled=" + enabled + ", validDate=" + validDate
               + ", startCreateTime=" + startCreateTime + ", endCreateDate=" + endCreateDate
               + ", createDate=" + createDate + ", endCreateTime=" + endCreateTime
               + ", startCreateDate=" + startCreateDate + ", startLoginTime=" + startLoginTime
               + ", endLoginTime=" + endLoginTime + ", createUserId=" + createUserId
               + ", lastUpdatedDate=" + lastUpdatedDate + ", lastUpdatedUserId="
               + lastUpdatedUserId + ", userId=" + userId + ", userName=" + userName
               + ", displayName=" + displayName + ", email=" + email + ", queryType=" + queryType
               + ", pageNumber=" + pageNumber + ", pageSize=" + pageSize + ", status=" + status
               + ", relation=" + relation + "]";
    } 

 }